package cn.geckos.flexforum.data {
	
import flash.utils.Dictionary;
	
	
/**
 * 用户类
 * @author harry
 */	

public class User
{
	private var _id:int;
	private var _level:int;
	private var _name:String;
	private var _password:String;
	private var _details:Dictionary;
	
	/**
	 * 获取用户id
	 */
	public function get id():int {
		return _id;
	}
	
	/**
	 * 获取用户权限等级
	 */
	public function get level():int {
		return _level;
	}
	
	/**
	 * 获取用户名(登录帐号)
	 */
	public function get name():String {
		return _name;
	}
	
	/**
	 * 设置用户密码
	 */
	public function set password(pass:String):void {
		_password = pass;
	}
	
	/**
	 * 获取用户密码
	 */ 
	public function get password():String {
		return _password;
	}
	
	/**
	 * 设置用户详情
	 */
	public function set details(d:Dictionary):void {
		_details = d;
	}
	
	/**
	 * 获取用户详情
	 */
	public function get details():Dictionary {
		return _details;
	}
	
	public function User(id:int, 
							level:int, 
							name:String, 
							password:String=null, 
							details:Dictionary=null)
	{
		_id = id;
		_level = level;
		_name = name;
		_password = password;
		_details = details;
	}
}
}




